/** 
 * AbstractBowlingInningsParser.java Created by iweerarathna on Aug 30, 2011.
 * 
 * Copyright (c) 2011 Virtusa Corporation. All Rights Reserved.<br><br>. 
 * 
 */
package org.uim.cricket.analyzer.parsers.bowling;

import java.util.List;

import org.uim.cricket.entities.aggr.SingleInning;
import org.uim.cricket.entities.bowling.BowlingInning;

/**
 * TODO Class description goes here.
 * @version 
 * @author iweerarathna
 */
public abstract class AbstractBowlingInningsParser {

    private BowlingInningParsable bowlingParsable = null;
    
    public AbstractBowlingInningsParser(BowlingInningParsable theBowlingParsable) {
        this.bowlingParsable = theBowlingParsable;
    }
    
    public void setBowlingParsable(BowlingInningParsable bowlingParsable) {
        this.bowlingParsable = bowlingParsable;
    }
    
    public BowlingInningParsable getBowlingParsable() {
        return bowlingParsable;
    }
    
    public abstract List<BowlingInning> parseAllBowlingInnings(StringBuilder sb, SingleInning inning);
    
}
